<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        body{
            margin: 100px;
        }
        .spinner{
            width: 40px;
            height: 40px;
            background-color: red;
            border-radius: 50%;
            animation: fadeOut 1.5s linear infinite;
            -webkit-animation: fadeOut 1.5s linear infinite;
        }
        @keyframes fadeOut{
            from{
                transform: scale(0);
            }
            to{
                transform: scale(1);
                opacity: 0;
            }
        }

        @-webkit-keyframes fadeOut{
            from{
                -webkit-transform: scale(0);
            }
            to{
                -webkit-transform: scale(1);
                opacity: 0.5;
            }
        } 
    </style>
</head>
<body>
    <div class="spinner"></div>
</body>
</html>